package gov.nih.nlm.lowlinc.accessionwrapper;

import gov.nih.nlm.lowlinc.owlapi.LowlincException;

import org.semanticweb.owlapi.model.OWLClassExpression;

public class LOINCTermID extends LOINCID {

	public LOINCTermID(String id) throws LowlincException {
		super(id);
	}

	public LOINCTermID(OWLClassExpression subclass) throws LowlincException {
		super(subclass);
	}

	@Override
	public String toString() {
		return "LOINC Term (" + getID() + ")";
	}

	protected void validateID() throws LowlincException {
		if (getID().startsWith("LP")) {
			throw new LowlincException(getID() + " termID looks like partID");
		}
	}
}
